package com.itheima.project.core.enums.search;
import com.itheima.project.basic.IBasicEnum;
public enum SearchEnum implements IBasicEnum {
    SUCCEED("200","操作成功"),
    FAIL("1000","操作失败"),
    INDEX_CREATE_FAIL("52001", "创建索引库失败"),
    INDEX_DELETE_FAIL("52002", "删除索引库失败"),
    INDEX_GET_FAIL("52003", "获取索引库信息失败"),
    DOCUMENT_CREATE_FAIL("52004", "创建文档信息失败"),
    DOCUMENT_UPDATE_FAIL("52005", "创建文档信息失败"),
    DOCUMENT_SEARCH_FAIL("52006", "搜索文档信息失败"),
    DOCUMENT_DELETE_FAIL("52007", "删除文档信息失败")
    ;
    private String code;
    private String msg;
    SearchEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    @Override
    public String getCode() {
        return code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
}
